//
//  HMManagerController.m
//  HMPersonalDoctor
//
//  Created by manman on 16/9/10.
//  Copyright © 2016年 geduo. All rights reserved.
//

#import "HMManagerController.h"
#import "HMManagerView.h"
@interface HMManagerController ()
@property(strong ,nonatomic)HMManagerView *header;
@end

@implementation HMManagerController
//- (instancetype)init
//{
//if(self = [super init])
//{
//    [self setupUI];
//
//}
//    return self;
//}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
    }

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)setupUI
{
//创建视图
    
    UITableView *tv = [[UITableView alloc] initWithFrame:self.view.bounds];
//    tv.backgroundView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"sky"]];
//    tv.opaque = NO;
    //    tv.backgroundColor = [UIColor colorWithRed:124 / 255.0 green:125 / 255.0 blue:129 / 255.0 alpha:0.5];
    tv.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:tv];
    HMManagerView *headerView = [[HMManagerView alloc]init];
    headerView.frame = CGRectMake(0, 0, tv.bounds.size.width, 70);
    headerView.name.text = @"如来佛祖";
    headerView.name.textColor = [UIColor redColor];
    headerView.imageV.image = [UIImage imageNamed:@"avatar_patient_male_58C89562F58FD276F592420068DB8C09_0"];
    headerView.nameImg.image = [UIImage imageNamed:@"icon_doctor_friends_58C89562F58FD276F592420068DB8C09_0"];
    headerView.dateImg.image = [UIImage imageNamed:@"icon_patient_group_58C89562F58FD276F592420068DB8C09_0"];
    headerView.phoneImg.image = [UIImage imageNamed:@"icon_phone_contacts_58C89562F58FD276F592420068DB8C09_0"];
    headerView.phone.text = @"121443434";
    headerView.date.text = @"2016-9-10";
    tv.tableHeaderView = headerView;
//    tv.scrollEnabled = NO;
//    tv.dataSource = self;
//    tv.delegate = self;
//    [tv registerNib:[UINib nibWithNibName:@"HMSideslipCell" bundle:nil] forCellReuseIdentifier:cellID];
    tv.rowHeight = 60;
    
}

@end
